On Set Value Javascript

Description

An expression that transforms the value of the data to populate the control when the .setValue() method is called.

Discussion

The On Set Value Javascript event fires when the {dialog.object}.setValue() method is called. This allows you to transform the value used to set the control's value.

The JavaScript to transform the value can reference a variable called value. The JavaScript must return a value. For example:

Example

return value.toUpperCase();

See Also